home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1606 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: crl7.crl.com!not-for-mail
  2. From: jbrunson@crl.com (John C. Brunson)
  3. Newsgroups: comp.lang.c++
  4. Subject: BDE programmers: I need assistance
  5. Date: 11 Jan 1996 12:47:56 -0800
  6. Organization: CRL Dialup Internet Access    (415) 705-6060  [Login: guest]
  7. Message-ID: <4d3t1s$sde@crl7.crl.com>
  8. NNTP-Posting-Host: crl7.crl.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I'm a first time BDE programmer and I'm having some problems.  Could 
  12. someone e-mail me back so I could describe my problem in detail?  
  13. Borland's Database Engine manual is NO HELP.
  14.  
  15. Specifically:
  16.  
  17. I'm accessing a table called "record.db" on my local c: drive.
  18. The database dir is c:\user\dbase
  19.  
  20. 1.    I've initialized the database (DbiInit(NULL) )
  21.  
  22. 2.    Opened a database (DbiOpenDatabase("SILVER", "STANDARD", 
  23.     dbiREADWRITE, dbiOPENSHARED, NULL, 0, NULL, NULL, &hDb); )
  24.     The alias is "silver" and it's a paradox table.
  25.  
  26. 3.    Set a dir (DbiSetDirectory(hDb, "C:\\USER\\DBASE"); )
  27.  
  28. 4.    Opened a table (DbiOpenTable(hDb, "Record", szPARADOX, NULL, 
  29.     NULL, 0, dbiREADWRITE, dbiOPENSHARED, xltFIELD, FALSE, NULL, &hCur); )
  30.  
  31. 5.    Opened a cursor (DbiGetCursorProps(hCur, &curProps); )
  32.  
  33. 6.    Set to begin (DbiSetToBegin(hCur); )
  34.  
  35. 7.    Get the record (DbiGetNextRecord(hCur, dbiNOLOCK, pRecBuf, NULL); )
  36.  
  37. 8.    Get the field (DbiGetField( hCur, 1, pRecBuf, (pBYTE)&SDCNum, 
  38.     &isBlank) ; 
  39.  
  40. The "record" table is one record long.  Field #1 is a number type.
  41.  
  42. The problem is that once I check each one of these steps, everything 
  43. checks out fine.  Then when I check if isBlank is true or false, it comes 
  44. out FALSE!!!  
  45.  
  46. PLEASE HELP!  If you need further details, please email.
  47.  
  48. JCB
  49. -- 
  50.       John Brunson       |     When she left I was cold inside... 
  51.     jbrunson@crl.com     |   That look on my face was just pride...
  52.        Atlanta, GA       |               -The Police
  53.  
  54.